package com.cls.business.service;

import com.cls.business.entity.ApplicantInfo;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 申请人信息表 Service接口
 *
 * @author wandering
 * @date 2020-11-11 18:15:13
 */
public interface IApplicantInfoService extends IService<ApplicantInfo> {
    /**
     * 查询（分页）
     *
     * @param request       QueryRequest
     * @param applicantInfo applicantInfo
     * @return PageInfo<ApplicantInfo>
     */
    PageInfo<ApplicantInfo> findApplicantInfos(QueryRequest request, ApplicantInfo applicantInfo);

    /**
     * 查询（所有）
     *
     * @param applicantInfo applicantInfo
     * @return List<ApplicantInfo>
     */
    List<ApplicantInfo> findApplicantInfos(ApplicantInfo applicantInfo);

    /**
     * 新增
     *
     * @param applicantInfo applicantInfo
     */
    void createApplicantInfo(ApplicantInfo applicantInfo);

    /**
     * 修改
     *
     * @param applicantInfo applicantInfo
     */
    void updateApplicantInfo(ApplicantInfo applicantInfo);

    /**
     * 删除
     *
     * @param applicantInfo applicantInfo
     */
    void deleteApplicantInfos(String[] ids);

    ApplicantInfo findByIdentity(String identity);

    ApplicantInfo findByUserId(Long userId);


}
